// Copyright 2011 Jefferson Willian
// willmont7@gmail.com

#include <cstdio>
#include <cmath>

/* 2^n-1 movimentos para n discos */
int main() {
  int n;
  int games = 1;

  while (scanf("%d", &n) && n != 0)
    printf("Teste %d\n%d\n\n", games++, static_cast<int>(pow(2, n)-1));

  return 0;
}

